package com.tiantian.app.activities;

import com.infindo.frame.util.ScreenManager;
import com.tiantian.app.R;

import android.content.Intent;
import android.os.Bundle;
import android.view.View;
import android.widget.Button;
import android.widget.TextView;
 
 /** 
 * @author  William.Chen
 * @version 创建时间：2013-3-9 上午11:23:29 
 * 类说明 
 */
public class PageChangePasswordActivity extends SuperActivity {

	private Button backBtn,submitBtn;
	/* 
	 * @see com.tiantian.app.activities.SuperActivity#onCreate(android.os.Bundle)
	 */
	@Override
	protected void onCreate(Bundle savedInstanceState) {
		// TODO Auto-generated method stub
		super.onCreate(savedInstanceState);
		setContentView(R.layout.layout_changepassword);
		onResetUI();
	}
	/* 
	 * @see com.tiantian.app.activities.SuperActivity#callback(java.lang.String, int, java.lang.Object)
	 */
	@Override
	public void callback(String type, int position, Object obj) {
		// TODO Auto-generated method stub

	}

	/* 
	 * @see com.tiantian.app.activities.SuperActivity#findView()
	 */
	@Override
	public void findView() {
		// TODO Auto-generated method stub
		superTitle = (TextView)findViewById(R.id.superTitle);
		superTitle.setText("修改密码");
		
		backBtn = (Button)findViewById(R.id.superBack);
		backBtn.setVisibility(View.VISIBLE);
		
		submitBtn = (Button)findViewById(R.id.superSubmit);
		submitBtn.setVisibility(View.VISIBLE);
	}

	/* 
	 * @see com.tiantian.app.activities.SuperActivity#initData()
	 */
	@Override
	public void initData() {
		// TODO Auto-generated method stub

	}

	/* 
	 * @see com.tiantian.app.activities.SuperActivity#onResetUI()
	 */
	@Override
	public void onResetUI() {
		// TODO Auto-generated method stub
        findView();
        setListener();
        initData();
	}

	/* 
	 * @see com.tiantian.app.activities.SuperActivity#setListener()
	 */
	@Override
	public void setListener() {
		// TODO Auto-generated method stub
	      backBtn.setOnClickListener(this);
	      submitBtn.setOnClickListener(this);
	        
	}
	
	public void onClick(View view) {
		// TODO Auto-generated method stub
		super.onClick(view);
		Intent it;
		switch(view.getId()){
		case R.id.superBack:
			 ScreenManager.getScreenManager().popActivity(this);
			break;
		case R.id.superSubmit:
            it = new Intent(PageChangePasswordActivity.this,PageTeacherHomeActivity.class);
            startActivity(it);
			break;
		}
	}

}
